import {createBrowserRouter} from 'react-router-dom'
import Home from '@/pages/Home'
import Add from '@/pages/Add'
import Month from '@/pages/Month'
import Year from '@/pages/Year'

const router = createBrowserRouter([
    {
        path: '/',
        element: <Home/>,
        children: [
            {
                index: true,
                element: <Month/>
            },
            {
                path: '/year',
                element: <Year/>
            }
        ]
    },
    {
        path: '/add',
        element: <Add/>
    }
])

export default router